package wps.model {
import mx.binding.utils.BindingUtils;
import mx.filters.BaseFilter;

import wps.constant.Assets;

[Bindable]
public class SettingFilter {

    //--------------------------------------------------------------------------
    //
    // Properties
    //
    //--------------------------------------------------------------------------

    //----------------------------------
    // seq
    //----------------------------------

    private var _seq:int;

    /**
     * filter的编号，显示在datagrid中用到
     */
    public function get seq():int {
        return _seq;
    }

    public function set seq(seq:int):void {
        _seq = seq;
    }

    //----------------------------------
    // icon
    //----------------------------------

    private var _icon:Class = Assets.ICON_FONT_B;

    /**
     * 代表filter的图标
     */
    public function get icon():Class {
        return _icon;
    }

    public function set icon(icon:Class):void {
        _icon = icon;
    }

    //----------------------------------
    // type
    //----------------------------------

    private var _type:String;

    /**
     * filter类型
     */
    public function get type():String {
        return _type;
    }

    public function set type(type:String):void {
        _type = type;
    }

    //----------------------------------
    // name
    //----------------------------------

    private var _name:String;

    /**
     * filter显示名称
     */
    public function get name():String {
        return _name;
    }

    public function set name(name:String):void {
        _name = name;
    }

    //----------------------------------
    // filter
    //----------------------------------

    private var _filter:BaseFilter;

    /**
     * filter
     */
    public function get filter():BaseFilter {
        return _filter;
    }

    public function set filter(filter:BaseFilter):void {
        _filter = filter;
    }

    //----------------------------------
    // valid
    //----------------------------------

    private var _valid:Boolean = true;

    /**
     * 有效性
     * @default true
     */
    public function get valid():Boolean {
        return _valid;
    }

    public function set valid(valid:Boolean):void {
        _valid = valid;
    }

}

}
